﻿using SqlSugar;
using YNTK.Common.Const;

namespace YNTK.General.Entitys.Notice
{
    /// <summary>
    /// (会议)培训通知关联流程节点
    /// </summary>
    [SugarTable("general_training_notice_flowconfigs")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class TrainingNoticeFlowConfigEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(ColumnName = "F_Id", ColumnDescription = "id")]
        public string Id { get; set; }

        /// <summary>
        /// (会议)培训通知id
        /// </summary>
        [SugarColumn(ColumnName = "F_TrainingNoticeId", ColumnDescription = "(会议)培训通知id")]
        public string TrainingNoticeId { get; set; }

        /// <summary>
        /// 流程节点名称
        /// </summary>
        [SugarColumn(ColumnName = "F_NodeName", ColumnDescription = "流程节点名称", ColumnDataType = "nvarchar(50)")]
        public string NodeName { get; set; }

        /// <summary>
        /// 是否允许驳回
        /// </summary>
        [SugarColumn(ColumnName = "F_Rejected", ColumnDescription = "是否允许驳回", ColumnDataType = "bit")]
        public bool Rejected { get; set; }

        /// <summary>
        /// 是否为发起人确认
        /// </summary>
        [SugarColumn(ColumnName = "F_Confirm", ColumnDescription = "是否为发起人确认", ColumnDataType = "bit")]
        public bool Confirm { get; set; }

        /// <summary>
        /// 是否需要签字
        /// </summary>
        [SugarColumn(ColumnName = "F_Signature", ColumnDescription = "是否需要签字", ColumnDataType = "bit")]
        public bool Signature { get; set; }

        /// <summary>
        /// 审核机构id
        /// </summary>
        [SugarColumn(ColumnName = "F_MechanismId", ColumnDescription = "审核机构id", ColumnDataType = "nvarchar(500)")]
        public string MechanismId { get; set; }

        /// <summary>
        /// 审核角色id
        /// </summary>
        [SugarColumn(ColumnName = "F_RoleId", ColumnDescription = "审核角色id", ColumnDataType = "nvarchar(50)")]
        public string RoleId { get; set; }

        /// <summary>
        /// 审核用户id,多个用户按逗号分割
        /// </summary>
        [SugarColumn(ColumnName = "F_UserIds", ColumnDescription = "审核用户id,多个用户按逗号分割", ColumnDataType = "nvarchar(50)")]
        public string UserIds { get; set; }

        /// <summary>
        /// 节点顺序
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "F_Description")]
        public string Description { get; set; }

    }
}
